package ApplicationStart.Controller

import org.springframework.web.bind.annotation.{PathVariable, RequestMapping, RestController}


@RestController("HelloScala")
class HelloScalaController { //这里分别搜索 spring context
  @RequestMapping(Array("/printScala/{context}")) def printHelloWorld(@PathVariable context: String): String = {
    if (context != null && !context.isEmpty) return context
    "Hello World"
  }
}

